package net.huashitong.Indicators.utils;

import java.text.DecimalFormat;

public class DataFormateUntil {

	public static String  dataFormat(String str){
		
		DecimalFormat df=new DecimalFormat("#.##");
		Double strDouble =Double.parseDouble(str);
		//df.format(strDouble);
		return  df.format(strDouble);
	}
	public static String dataformatUnit(String str)
	{
		DecimalFormat df=new DecimalFormat("#.##");
		Double strDouble =Double.parseDouble(str);
		strDouble =strDouble/10000;
		return  df.format(strDouble);
	}
	
}
